package com.ruiyian.bridge.project.domain;

import com.ruiyian.common.annotation.Excel;
import com.ruiyian.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备类型
 * @author ruoyi
 * @date 2022-01-20
 */
public class DeviceType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 类型名称 */
    @Excel(name = "类型名称")
    private String name;

    /** 删除标志 */
    private Integer delFlag;

    /** 1启用0禁用 */
    private Integer usemark;

    /** 对应设备类型type不重复 */
    private Integer type;

    /** 图标 */
    private String icon;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }
    public void setUsemark(Integer usemark)
    {
        this.usemark = usemark;
    }

    public Integer getUsemark()
    {
        return usemark;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setIcon(String icon)
    {
        this.icon = icon;
    }

    public String getIcon()
    {
        return icon;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("delFlag", getDelFlag())
            .append("remark", getRemark())
            .append("usemark", getUsemark())
            .append("createTime", getCreateTime())
            .append("type", getType())
            .append("icon", getIcon())
            .toString();
    }
}
